package com.atguigu.eduservice.feign;

import com.atguigu.common.R;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author panghl
 * @Date 2021/1/30 22:48
 * @Description 调用对应服务出错才会执行
 **/
@Component
public class VodFileDegradeFeignClient implements VodFeign{

    @Override
    public R removeAlyVideo(String id) {
        return R.error().message("删除视频出错了");
    }

    @Override
    public R removeBatch(List<String> viedoIdList) {
        return R.error().message("删除多个视频出错了");
    }

}
